Atomic
@propertyWrapper
final class Atomic<Value>
extension Atomic : Sendable, SendableMetatype
Undocumented
-
Undocumented
Declaration
Swift
init(wrappedValue: Value) -
Thread-safe getter
Declaration
Swift
var wrappedValue: Value { get set } -
Thread-safe modify
Declaration
Swift
func modify<R>(_ block: (inout Value) throws -> R) rethrows -> R -
Thread-safe exchange
Declaration
Swift
func exchange(_ value: Value) -> Value